import $api from './server'

export const addAdmin = async (data)=>{
    let res = await $api.post('admin/add',data)
    return res.data
}

export const loginAdmin = async (data)=>{
    let res = await $api.post('admin/login',data)
    return res.data
}